package com.ruoyi.manager.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
*@program: ruoyi
*@description: ${description}
*@author: yuxiang
*@create: 2021-09-03 16:59
*/
@Data
@TableName(value = "`rank`")
public class Rank {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 父级id
     */
    @TableField(value = "pid")
    private Integer pid;

    /**
     * 职级
     */
    @TableField(value = "rank")
    private String rank;

    /**
     * 类别
     */
    @TableField(value = "type")
    private Integer type;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @TableField(exist = false)
    private List<Rank> childrenList;
}